<script>
import MyCount from "@/components/Count.vue";
export default {
  name: 'App',
  components: {MyCategory: MyCount},
}
</script>

<template>
  <div class="app">
    <MyCategory content="游戏">
      <template slot-scope ="test">
        <ul>
          <li v-for="(item,index) in test.games" :key="index">
            {{item}}
          </li>
        </ul>
      </template>
    </MyCategory>
    <MyCategory content="游戏">
      <template slot-scope ="test">
        <ol>
          <li v-for="(item,index) in test.games" :key="index">
            {{item}}
          </li>
        </ol>
      </template>
    </MyCategory>

    <MyCategory content="游戏">
      <template slot-scope="test">
          <h4 style="color: #da4f49" v-for="(item,index) in test.games" :key="index">
            {{item}}
          </h4>
      </template>
    </MyCategory>
  </div>
</template>

<style>
.app{
  display: flex;
  justify-content: space-around;
}
</style>

